package com.efast.cafe.portal.service.query.defauleValue;

import com.efast.cafe.framework.util.SpringWebUtils;
import com.efast.cafe.portal.entity.company.PortalCompanyUser;

public class UserConditionValue extends AbstractConditionValue<PortalCompanyUser,String>{

	public UserConditionValue() {
	}
	
	@Override
	Object getObject() {
		PortalCompanyUser user = new PortalCompanyUser();
		user.setCompany_code(SpringWebUtils.getRequestCompany());
		user.setUsername(SpringWebUtils.getRequestUser());
		return user;
	}

	@Override
	String getShortName() {
		return "currentUser";
	}

}
